static, __init and __initdata symbols in machine_kexec.c
authorSimon Horman <horms@verge.net.au>
Wed, 16 May 2007 08:15:54 +0000 (09:15 +0100)
committerSimon Horman <horms@verge.net.au>
Wed, 16 May 2007 08:15:54 +0000 (09:15 +0100)
Some symbols in machine_kexec.c really ought to be static and,
marked __init or __initdata.

Signed-off-by: Simon Horman <horms@verge.net.au>
linux-2.6-xen-sparse/drivers/xen/core/machine_kexec.c

index bdf7dda07e633c2ad5b850fbef60dbb2244225fb..95482ded647c1fe411599e1e954112b63836caa3 100644 (file)
 extern void machine_kexec_setup_load_arg(xen_kexec_image_t *xki, 
                                         struct kimage *image);
 
-int xen_max_nr_phys_cpus;
-struct resource xen_hypervisor_res;
-struct resource *xen_phys_cpus;
+static int __initdata xen_max_nr_phys_cpus;
+static struct resource __initdata xen_hypervisor_res;
+static struct resource __initdata *xen_phys_cpus;
 
-void xen_machine_kexec_setup_resources(void)
+void __init xen_machine_kexec_setup_resources(void)
 {
        xen_kexec_range_t range;
        struct resource *res;
@@ -104,7 +104,7 @@ void xen_machine_kexec_setup_resources(void)
        return;
 }
 
-void xen_machine_kexec_register_resources(struct resource *res)
+void __init xen_machine_kexec_register_resources(struct resource *res)
 {
        int k;